document.write( "<table width='100%' cellpadding='0' cellspacing='0' border='0' >");
document.write( "<tr><td>");
document.write( "<div id='header' >&nbsp;</div>");
document.write( "</div>");
document.write( "</td></tr>");
document.write( "<tr><td align='left' >");

document.write( "<div id='menu'> ");
document.write( "    <ul class='menu'> ");
document.write( "        <li>&nbsp;</li> ");
if(vLoginStatus != null && vLoginStatus !=0 && vUserType == 1 )
	document.write( "        <li><a href='./admin/admin_main.jsp' class='parent'><span>Home</span></a> </li> ");
else if(vLoginStatus != null && vLoginStatus !=0 && vUserType == 2 )
	document.write( "        <li><a href='./form/user_main.jsp' class='parent'><span>Home</span></a> </li> ");
else
	document.write( "        <li><a href='./index.jsp' class='parent'><span>Home</span></a> </li> ");

if(vLoginStatus != null && vLoginStatus !=0 && vUserType == 1 )
{
	document.write( "        <li><a href='#'><span>Admin</span></a>");
	document.write( "            <div><ul> ");
	document.write( "                <li> <a href='./admin/frm_user_permission.jsp'><span>User Permission</span></a> </li> ");
	document.write( "            </ul></div> ");
	document.write( "        </li> ");
}	

if(vLoginStatus == null || vLoginStatus == 0 )
	document.write( "        <li class='last'><a href='form/frm_user.jsp'> <span>New User</span></a></li> ");

document.write( "        <li><a href='#'><span>Real Estate</span></a>");
document.write( "            <div><ul> ");
document.write( "                <li><a href='#'><span>Land</span></a>");
document.write( "        </li> ");
document.write( "                <li><a href='#'><span>Property</span></a>");
document.write( "        </li> ");
document.write( "            </ul></div> ");
document.write( "        </li> ");

document.write( "        <li class='last'><a href='#'><span>Vehicles</span></a></li> ");

document.write( "        <li class='last'><a href='#'><span>Persons</span></a></li> ");

document.write( "        <li class='last'><a href='#'><span>Business</span></a></li> ");

document.write( "        <li class='last'><a href='#'><span>Contact Us</span></a></li> ");

if(vLoginStatus != null && vLoginStatus !=0 && vUserType == 1 )
	document.write( "	<li class='last'><a href='./admin/index.jsp' ><span>Logout</span></a></li>");
else if(vLoginStatus != null && vLoginStatus !=0 )
	document.write( "	<li class='last'><a href='./index.jsp' ><span>Logout</span></a></li>");
	

document.write( "    </ul> ");
document.write( "</div> ");

document.write( "</td></tr>");
document.write( "</table>");